//
//  OddMoveEvenStillAction.hpp
//  fingeradvanture
//
//  Created by shuaibincheng on 16/5/22.
//  奇数位的monster左右平移，偶数位的monster保持不动
//  怪物个数必须是奇数

#ifndef OddMoveEvenStillAction_hpp
#define OddMoveEvenStillAction_hpp
#include "TroopAction.hpp"
class OddMoveEvenStillAction : public TroopAction
{
public:
    OddMoveEvenStillAction(int num) : TroopAction(num){}
    virtual void train(const Vector<Node *> &monsters);
protected:
    void trainFirstOne(const Vector<Node *> &monsters);
    void trainLastOne(const Vector<Node *> &monsters);
    void trainOthers(const Vector<Node *> &monsters);
};

#endif /* OddMoveEvenStillAction_hpp */
